
<script>
	import Vue from 'vue'
	export default {
		onLaunch: function() {
			// console.log('App Launch');
				// 手机状态栏高度获取ndfe
				uni.getSystemInfo({
					success: function(e) {
						// #ifndef MP
						Vue.prototype.StatusBar = e.statusBarHeight;
						if (e.platform == 'android') {
							Vue.prototype.CustomBar = e.statusBarHeight + 50;
						} else {
							Vue.prototype.CustomBar = e.statusBarHeight + 45;
						};
						// #endif
						// #ifdef MP-WEIXIN
						Vue.prototype.StatusBar = e.statusBarHeight;
						let custom = wx.getMenuButtonBoundingClientRect();
						Vue.prototype.Custom = custom;
						Vue.prototype.CustomBar = custom.bottom + custom.top - e.statusBarHeight;
						// #endif		
						// #ifdef MP-ALIPAY
						Vue.prototype.StatusBar = e.statusBarHeight;
						Vue.prototype.CustomBar = e.statusBarHeight + e.titleBarHeight;
						// #endif
					}
				})
				// 手机状态栏高度获取end
				const  audio = uni.createInnerAudioContext(
					// src:"http://www.ytmp3.cn/down/75516.mp3",
				)
				audio.src = "http://www.ytmp3.cn/down/75516.mp3"
				audio.autoplay = true
				audio.loop = true
		},
		
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
		onUnload: function() {
			
		}
	}
</script>

<style>
	/*每个页面公共css */
	/* @import "colorui/icon.css"; */
	/* @import "colorui/main.css"; */
	
/* 	@import "common/font-awesome-4.7.0/css/font-awesome.css";
	@import "common/font-awesome-4.7.0/css/font-awesome.min.css"; */
		
	body{
		
		height: auto;
		transform-style:preserve-3d;
		perspective:1500rpx;
		
		/* backgroundColor: linear-gradient(#FFFFFF 0%,#666666 80%) !important; */
	}
</style>
